package com.rocksea.app.entry;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 吴志华 on 2017/9/29.
 * 桩信息
 *
 */

public class PileInfo implements Parcelable
{
    private String pileId;
    private String pileNo;
    private String pileBottomH;
    private String pileTopH;
    private long loadTime;
    private String receiveTime;
    private String basicInfoId;
    private int dataType = -1;
    private String serilNo;
    private long planId;

    public PileInfo()
    {
    }

    protected PileInfo(Parcel in) {
        pileId = in.readString();
        pileNo = in.readString();
        pileBottomH = in.readString();
        pileTopH = in.readString();
        loadTime = in.readLong();
        receiveTime = in.readString();
        basicInfoId = in.readString();
        dataType = in.readInt();
        serilNo = in.readString();
        planId = in.readLong();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(pileId);
        dest.writeString(pileNo);
        dest.writeString(pileBottomH);
        dest.writeString(pileTopH);
        dest.writeLong(loadTime);
        dest.writeString(receiveTime);
        dest.writeString(basicInfoId);
        dest.writeInt(dataType);
        dest.writeString(serilNo);
        dest.writeLong(planId);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PileInfo> CREATOR = new Creator<PileInfo>() {
        @Override
        public PileInfo createFromParcel(Parcel in) {
            return new PileInfo(in);
        }

        @Override
        public PileInfo[] newArray(int size) {
            return new PileInfo[size];
        }
    };

    public long getPlanId()
    {
        return planId;
    }

    public void setPlanId(long planId) {
        this.planId = planId;
    }

    public int getDataType()
    {
        return dataType;
    }
    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public String getSerilNo() {
        return serilNo;
    }

    public void setSerilNo(String serilNo) {
        this.serilNo = serilNo;
    }

    public String getPileId() {
        return pileId;
    }

    public void setPileId(String pileId) {
        this.pileId = pileId;
    }

    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getPileBottomH() {
        return pileBottomH;
    }

    public void setPileBottomH(String pileBottomH) {
        this.pileBottomH = pileBottomH;
    }

    public String getPileTopH() {
        return pileTopH;
    }

    public void setPileTopH(String pileTopH) {
        this.pileTopH = pileTopH;
    }

    public long getLoadTime() {
        return loadTime;
    }

    public void setLoadTime(long testTime) {
        this.loadTime = testTime;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getBasicInfoId() {
        return basicInfoId;
    }

    public void setBasicInfoId(String basicInfoId) {
        this.basicInfoId = basicInfoId;
    }
}
